﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace vfife_building_algorithm
{
    public class ElementForce : Force
    {
        public double []x_exforce;
        public double[] y_exforce;
        
        
        public double x_Angle;
        public Caculation_Parameters Cacu_Para;

        public int SizeOfForce;
       

        public ElementForce(double lamd,Caculation_Parameters cacu_Para) : base(lamd)
        {
            
            this.lamda = lamd;
            this.Cacu_Para = cacu_Para;
            if (Cacu_Para == null) {

                MessageBox.Show("You have to set Caculation Parameters First!");


            }
            double EndTime;
            double timeStep;
            
            EndTime = Cacu_Para.endTime;
            timeStep = Cacu_Para.h;
            SizeOfForce = (int)(EndTime / timeStep);
            x_exforce = new double[SizeOfForce];
            y_exforce = new double[SizeOfForce];
            
        }

      
    }
}
